import DefaultTheme from 'vitepress/theme'
import cowui from '../../../packages'

import { NaiveUIContainer } from '@vitepress-demo-preview/component'
import '@vitepress-demo-preview/component/dist/style.css'

export default {
  ...DefaultTheme,
  enhanceApp({ app }) {
    // 注册全局组件
    app.use(cowui)
    app.component('DemoPreview', NaiveUIContainer)
  },
}
